<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"
    />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <!--jquery-->
    <script type="text/javascript" src="./js/jquery.min.js"></script>
    <!--layui-->
    <script type="text/javascript" src="./lib/layui/layui.js"></script>
    <!--cookies-->
    <script type="text/javascript" src="./js/cookies.js"></script>
    <!--spark-md5 获取文件MD5-->
    <script type="text/javascript" src="./js/spark-md5.min.js"></script>
    <!--common-->
    <script type="text/javascript" src="./js/common.js"></script>
    <!--检测登陆-->
    <script type="text/javascript" src="./js/testing_login.js"></script>
    <!--xadmin js-->
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <!--index.js-->
    <script type="text/javascript" src="./js/normal-product-add.js"></script>
    <style>
        .pj-img{
            width:220px;
            height: 220px;
            margin-right:30px; 
        }
        .bg-disable{
            background: #ccc;
        }
        #TW_stock .layui-input-inline, #CN_stock .layui-input-inline{
            margin-bottom: 10px;
        }
    </style>
</head>

<body>
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a href="">商品管理</a>
            <a href="">常规产品</a>
            <a>
                <cite>添加商品</cite>
            </a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);"
            title="刷新">
            <i class="layui-icon" style="line-height:30px">&#xe669;</i>
        </a>
    </div>
    <div class="x-body">
        <form class="layui-form layui-form-pane" lay-filter="product-detail-form">
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>产品名-简体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productNameCn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>产品名-繁体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productNameTw"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>产品名-英文
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productNameEn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>品牌
                </label>
                <div class="layui-input-inline">
                    <select name="brand">
                        <option value="kplus-helmet">kplus-helmet</option>
                        <option value="kplus-part">kplus-part</option>
                        <option value="kplus-select">kplus-select</option>
                        <option value="other">OTHERS</option>
                    </select>
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>颜色图标
                </label>
                <div class="layui-input-inline position-box">
                    <input type="text" name="colorIconFileSrc" class="layui-input" disabled placeholder="点击输入框添加">
                    <input type="file" onchange="addOrChangeProImg('colorIconFile')" data-op="colorIconFileSrc" name="colorIconFile" class="hidden-upload-btn ipt-file-btn">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>尺寸
                </label>
                <div class="layui-input-inline">
                    <select xm-select="size">
                        <option value="XS">XS</option>
                        <option value="S">S</option>
                        <option value="M">M</option>
                        <option value="L">L</option>
                        <option value="F">F</option>
                        <option value="PLUS+">PLUS+</option>
                        <option value="CLASSIC">classic</option>
                        <option value="LARGE/800ML">LARGE/800ML</option>
                        <option value="M-5mm慢回弹">M-5mm慢回弹</option>
                        <option value="M-5mm一般">M-5mm一般</option>
                        <option value="M-10mm一般">M-10mm一般</option>
                        <option value="L-5mm慢回弹">L-5mm慢回弹</option>
                        <option value="L-5mm一般">L-5mm一般</option>
                        <option value="L-10mm一般">L-10mm一般</option>
                        <option value="S/M-10mm一般">S/M-10mm一般</option>
                        <option value="S/M/L-10mm一般">S/M/L-10mm一般</option>
                        <option value="S/M-5mm一般">S/M-5mm一般</option>
                    </select>
                </div>
                <botton class="layui-btn layui-btn-normal" lay-submit lay-filter="create_stock_of_psize">
                    确认
                </botton>
            </div>
            <div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>台湾仓
                    </label>
                    <div id="TW_stock">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>大陆仓
                    </label>
                    <div id="CN_stock">
                        
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>所属系列
                </label>
                <div class="layui-input-inline">
                    <select name="series">
                        
                    </select>
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>产品颜色
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productColor"  lay-verify="" autocomplete="off" class="layui-input">
                </div> 
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>价格-人民币
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productPriceCn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>价格-新台币
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productPriceTw"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>价格-美元
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productPriceEn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>标题-简体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productTitleCn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>标题-繁体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productTitleTw"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>标题-英文
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productTitleEn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>副标题-简体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productSubTitleCn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>副标题-繁体
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productSubTitleTw"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>副标题-英文
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="productSubTitleEn"  lay-verify="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>热推
                </label>
                <div class="layui-input-inline">
                    <input lay-filter="is_commend" name="is_commend" value="1" type="checkbox" title="加入热推轮播">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>排序权重
                </label>
                <div class="layui-input-inline">
                    <input class="layui-input" lay-filter="sort_weight" name="sortWeight" type="text" title="排序权重">
                </div>
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>运费叠加
                </label>
                <div class="layui-input-inline">
                    <input lay-filter="freight_overlay" name="freightOverlay" value="Y" type="checkbox" title="商品运费叠加">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label for="" class="layui-form-label">简介-简体</label>
                <div class="layui-input-block">
                    <textarea name="descCn" placeholder="请输入内容" class="layui-textarea"  lay-verify=""></textarea>
                </div>
                <label for="" class="layui-form-label">简介-繁体</label>
                <div class="layui-input-block">
                    <textarea name="descTw" placeholder="请输入内容" class="layui-textarea"  lay-verify=""></textarea>
                </div>
                <label for="" class="layui-form-label">简介-英文</label>
                <div class="layui-input-block">
                    <textarea name="descEn" placeholder="请输入内容" class="layui-textarea"  lay-verify=""></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">操作</label>
                <div class="layui-input-block">
                    <a onclick="addNewImgToList()" class="layui-btn layui-btn-normal">添加图片</a>
                </div>
            </div>
            <div class="product-imgs-form" id="product-imgs-form">
                <div class="layui-form-item" id="productImg0">                    
                    <label for="" class="layui-form-label">                        
                        <span class="x-red">*</span>产品图 0                    
                    </label>                    
                    <div class="layui-input-inline" style="width:60%">                        
                        <input type="text" name="productImg0" ="" lay-verify="" autocomplete="off" class="layui-input">
                    </div>                    
                    <a class="layui-btn" onclick="checkImg('productImg0')">检查</a>                  
                    <div class="position-box">                   
                     <a class="layui-btn layui-btn-warm">变更</a>                    
                     <input type="file" data-op="productImg0" onchange="addOrChangeProImg('imgGuploadFile0')" name="imgGuploadFile0" class="hidden-upload-btn">                  
                 </div>                    
                 <a class="layui-btn layui-btn-danger" onclick="deleteImg('productImg0')">删除</a>                
             </div>
            </div>
            <div class="layui-form-item">
                <label for="" class="layui-form-label">
                    <span class="x-red">*</span>应用活动
                </label>
                <div class="layui-input-block" id="ptlBox">
                </div>
            </div>
            <div class="layui-form-item">
                <button lay-submit lay-filter="newAdd" class="layui-btn layui-btn-warm">保存商品信息</button>
            </div>
        </form>
    </div>
</body>
</html>